/**
 * Copyright (c)  HeiFeiDeFengZheng.Co.Ltd. All rights reserved.
 **/
package com.dexing.springbootconfig.controller;

import com.dexing.springbootconfig.bean.BlogProperties;
import com.dexing.springbootconfig.bean.ConfigBean;
import com.dexing.springbootconfig.bean.TestConfigBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能描述：
 *
 * @author huifeidefengzheng
 * @since 2024-01-02
 *
 **/

@RestController
public class IndexController {
    @Autowired
    private BlogProperties blogProperties;
    @Autowired
    private ConfigBean configBean;
    @Autowired
    private TestConfigBean testConfigBean;

    @RequestMapping("/")
    String index() {
        return testConfigBean.getName()+"，"+testConfigBean.getAge();
    }
}
